package com.mzj.saas.mservice.sreach.controller;

import com.mzj.saas.commons.ApiData;
import com.mzj.saas.commons.ResultBean;
import com.mzj.saas.mservice.sreach.service.AppKeywordSreachService;
import com.mzj.saas.mservice.sreach.vo.AppKeywordSreachVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

/**
 * APP搜索数据管理
 */

@Controller
@RequestMapping("/appKeywordSreach")
public class AppKeywordSreachController {

    @Autowired
    private AppKeywordSreachService appKeywordSreachService;

    /**
     * 列表
     */
    @GetMapping("/pages")
    @ResponseBody
    public ResultBean<ApiData<AppKeywordSreachVO>> pages(@RequestHeader String accessToken,
                                                         @RequestParam(defaultValue = "0") Integer pageNumber,
                                                         @RequestParam(defaultValue = "10") Integer pageSize,
                                                         AppKeywordSreachVO vo){

        return appKeywordSreachService.pages(accessToken, pageNumber, pageSize, vo);
    }

}
